package com.stm.synchronize.domain;

import com.stm.common.core.domain.BaseEntity;

public class DeviceMain
  extends BaseEntity
{
  private static final long serialVersionUID = 1L;
  private String id;
  private String devicetype;
  private Integer orgid;
  private String deviceid;
  private String devicename;
  private String updatetime;
  
  public void setId(String id)
  {
    this.id = id;
  }
  
  public void setDevicetype(String devicetype)
  {
    this.devicetype = devicetype;
  }
  
  public void setOrgid(Integer orgid)
  {
    this.orgid = orgid;
  }
  
  public void setDeviceid(String deviceid)
  {
    this.deviceid = deviceid;
  }
  
  public void setDevicename(String devicename)
  {
    this.devicename = devicename;
  }
  
  public void setUpdatetime(String updatetime)
  {
    this.updatetime = updatetime;
  }
  
  public boolean equals(Object o)
  {
    if (o == this) {
      return true;
    }
    if (!(o instanceof DeviceMain)) {
      return false;
    }
    DeviceMain other = (DeviceMain)o;
    if (!other.canEqual(this)) {
      return false;
    }
    Object this$id = getId();Object other$id = other.getId();
    if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
      return false;
    }
    Object this$devicetype = getDevicetype();Object other$devicetype = other.getDevicetype();
    if (this$devicetype == null ? other$devicetype != null : !this$devicetype.equals(other$devicetype)) {
      return false;
    }
    Object this$orgid = getOrgid();Object other$orgid = other.getOrgid();
    if (this$orgid == null ? other$orgid != null : !this$orgid.equals(other$orgid)) {
      return false;
    }
    Object this$deviceid = getDeviceid();Object other$deviceid = other.getDeviceid();
    if (this$deviceid == null ? other$deviceid != null : !this$deviceid.equals(other$deviceid)) {
      return false;
    }
    Object this$devicename = getDevicename();Object other$devicename = other.getDevicename();
    if (this$devicename == null ? other$devicename != null : !this$devicename.equals(other$devicename)) {
      return false;
    }
    Object this$updatetime = getUpdatetime();Object other$updatetime = other.getUpdatetime();return this$updatetime == null ? other$updatetime == null : this$updatetime.equals(other$updatetime);
  }
  
  protected boolean canEqual(Object other)
  {
    return other instanceof DeviceMain;
  }
  
  public int hashCode()
  {
    int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $devicetype = getDevicetype();result = result * 59 + ($devicetype == null ? 43 : $devicetype.hashCode());Object $orgid = getOrgid();result = result * 59 + ($orgid == null ? 43 : $orgid.hashCode());Object $deviceid = getDeviceid();result = result * 59 + ($deviceid == null ? 43 : $deviceid.hashCode());Object $devicename = getDevicename();result = result * 59 + ($devicename == null ? 43 : $devicename.hashCode());Object $updatetime = getUpdatetime();result = result * 59 + ($updatetime == null ? 43 : $updatetime.hashCode());return result;
  }
  
  public String toString()
  {
    return "DeviceMain(id=" + getId() + ", devicetype=" + getDevicetype() + ", orgid=" + getOrgid() + ", deviceid=" + getDeviceid() + ", devicename=" + getDevicename() + ", updatetime=" + getUpdatetime() + ")";
  }
  
  public String getId()
  {
    return this.id;
  }
  
  public String getDevicetype()
  {
    return this.devicetype;
  }
  
  public Integer getOrgid()
  {
    return this.orgid;
  }
  
  public String getDeviceid()
  {
    return this.deviceid;
  }
  
  public String getDevicename()
  {
    return this.devicename;
  }
  
  public String getUpdatetime()
  {
    return this.updatetime;
  }
}
